package com.ruoyi.yljf.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单对象 yljf_order
 * 
 * @author metaee
 * @date 2025-03-26
 */
@Data
@TableName(value = "yljf_order")
public class Order   {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String number;

    /** 下单用户id */
    @Excel(name = "下单用户id")
    private Long userId;

    /** 订单类型  1课程、2活动、3书籍 */
    @Excel(name = "订单类型  1课程、2活动、3书籍")
    private Long orderType;

    /** 订单状态 1待付款 2已付款 */
    @Excel(name = "订单状态 1待付款 2已付款")
    private Long status;

    /** 商品id */
    @Excel(name = "商品id")
    private Long dishId;

    /** 商品名字 */
    @Excel(name = "商品名字")
    private String name;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String image;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkoutTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** Y:赠送，N:未赠送 */
    @Excel(name = "Y:赠送，N:未赠送")
    private String isSend;

    /** 支付方式(qifu-祈福币   points-积分  ali-支付宝  wx-微信) */
    @Excel(name = "支付方式(qifu-祈福币   points-积分  ali-支付宝  wx-微信)")
    private String payMethod;

    /** 赠送人id */
    @Excel(name = "赠送人id")
    private Long sendUserId;


}
